package com.ruoyi.cs.base.customer.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.util.List;

/**
 * 客户信息表
 *cs_customer_info
 * @author Drj 2021/6/28
 */
public class CustomerInfo extends BaseEntity {
    /**
     * 客户编号
     */
    @NotNull(message = "客户编号不能为空")
    @ApiModelProperty(value = "客户编号", required = true)
    private String customerInfoId;
    /**
     * 客户名称
     */
    private String customerInfoName;
    /**
     * 分类编号
     */
    private Integer sortId;
    /**
     * 分类名称
     */
    private String sortName;
    /**
     * 客户地址
     */
    private String customerInfoAddress;
    /**
     * 客户级别
     */
    private String customerInfoLevel;
    /**
     * 是否评级状态
     */
    private String levelAutoStatus;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间")
    private Timestamp createTime;

    @Override
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    private List<CustomerContact> customerContacts;

    public List<CustomerContact> getCustomerContacts() {
        return customerContacts;
    }

    public void setCustomerContacts(List<CustomerContact> customerContacts) {
        this.customerContacts = customerContacts;
    }

    public String getCustomerInfoId() {
        return customerInfoId;
    }

    public void setCustomerInfoId(String customerInfoId) {
        this.customerInfoId = customerInfoId;
    }

    public String getCustomerInfoName() {
        return customerInfoName;
    }

    public void setCustomerInfoName(String customerInfoName) {
        this.customerInfoName = customerInfoName;
    }

    public Integer getSortId() {
        return sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getCustomerInfoAddress() {
        return customerInfoAddress;
    }

    public void setCustomerInfoAddress(String customerInfoAddress) {
        this.customerInfoAddress = customerInfoAddress;
    }

    public String getCustomerInfoLevel() {
        return customerInfoLevel;
    }

    public void setCustomerInfoLevel(String customerInfoLevel) {
        this.customerInfoLevel = customerInfoLevel;
    }

    public String getLevelAutoStatus() {
        return levelAutoStatus;
    }

    public void setLevelAutoStatus(String levelAutoStatus) {
        this.levelAutoStatus = levelAutoStatus;
    }
    @Override
    public String getRemark() {
        return remark;
    }
    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "CustomerInfo{" +
                "customerInfoId='" + customerInfoId + '\'' +
                ", customerInfoName='" + customerInfoName + '\'' +
                ", sortId=" + sortId +
                ", sortName='" + sortName + '\'' +
                ", customerInfoAddress='" + customerInfoAddress + '\'' +
                ", customerInfoLevel='" + customerInfoLevel + '\'' +
                ", levelAutoStatus='" + levelAutoStatus + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
